from pandas import DataFrame

def run(source: DataFrame, param_dict: dict):
    type = param_dict["type"]
    if type == "excel":
        print("报存为excel")
        source.to_excel(param_dict["file_name"], index=False)
    else:
        source.to_csv(param_dict["file_name"], index=False)
